﻿#region Copyright
//————————————————————————————————————————//
//	创建人员(Creator)    ：Huangyd
//	创建日期(Date)       ：2012-07-05
//  联系方式(Email)      ：aj-ayumi@163.com; gajayumi@gmail.com; ajayumi@me.com
//  描    述(Description)：
//
//	Copyright (C) 2012 ajayumi 版权所有
//————————————————————————————————————————//
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;

namespace ajayumi.Platform.WinForm
{
    /// <summary>
    /// IAsyncTaskPattern.cs 异步模式接口
    /// Author   : 黄乙冬 
    /// Date     : 2011-09-30
    /// </summary>
    public interface IAsyncTaskPattern : ISyncTaskPattern
    {
        /// <summary>
        /// 开始异步工作
        /// </summary>
        void RunWorkAsync();
        /// <summary>
        /// 取消异步工作
        /// </summary>
        void CancelAsync();
        /// <summary>
        /// 异步工作完成事件
        /// </summary>
        event EventHandler<RunWorkerCompletedEventArgs> RunWorkerCompleted;
        /// <summary>
        /// 异步工作进度事件
        /// </summary>
        event EventHandler<ProgressChangedEventArgs> ProgressChanged;
    }
}
